#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>

//randomtestadventurer.c

/*
case adventurer:
		card_adventurercardplay(drawntreasure, currentPlayer, cardDrawn, temphand, z,
				state);
				
void card_adventurercardplay(int drawntreasure, int currentPlayer, int cardDrawn,
		int temphand[MAX_HAND], int z, struct gameState* state) {
	while (drawntreasure < 2) {
		if (state->deckCount[currentPlayer] < 1) {
			//if the deck is empty we need to shuffle discard and add to deck
			shuffle(currentPlayer, state);
		}
		drawCard(currentPlayer, state);
		cardDrawn = state->hand[currentPlayer][state->handCount[currentPlayer]
				- 1]; //top card of hand is most recently drawn card.
		if (cardDrawn == copper || cardDrawn == silver || cardDrawn == gold)
			drawntreasure++;
		else {
			temphand[z] = cardDrawn;
			state->handCount[currentPlayer]--; //this should just remove the top card (the most recently drawn one).
			z++;
		}
	}
	while (z - 1 >= 0) {
		state->discard[currentPlayer][state->discardCount[currentPlayer]++] =
				temphand[z - 1]; // discard all cards in play that have been drawn
		z = z - 1;
	}
}
*/

void randomtest_adventurer() {
	srand(time(NULL));
	
	//random drawntreasure?
	//random currentPlayer?
	//random cardDrawn?
	//random temphand?
	//random z?
	//random states?
	
	//play adventurer card
	
	//???
}

int main() {
	randomtest_adventurer();
}